<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>:before伪元素选择器</title>
  <style>
    p:before{
      content: "学习视频";
      color: red;
      font-size: 20px;
      font-family: 楷体;
      font-weight: bold;
    }
    p:after{
      content: url("./images/timg.jpg");
    }
  </style>
</head>
<body>
<p>真正的大师都藏着一颗学徒的心。</p>
</body>
</html>